package com.aijk.ehm.api;

import com.aijk.commons.exception.ErrorCodeException;
import com.aijk.ehm.model.EhmResidentCrowd;
import com.aijk.ehm.model.qo.EhmResidentCrowdQo;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface EhmResidentCrowdApi {
    Long save(EhmResidentCrowd bean) throws ErrorCodeException;

    void update(EhmResidentCrowd bean) throws ErrorCodeException;

    EhmResidentCrowd findOne(Long id) throws ErrorCodeException;

    List<EhmResidentCrowd> list(EhmResidentCrowdQo qo);
    void deleteQo(EhmResidentCrowdQo qo);

    void deleteById(Long id) throws ErrorCodeException;

    int count(EhmResidentCrowdQo qo);

    PageInfo<EhmResidentCrowd> page(EhmResidentCrowdQo qo);
}